import $http from '@/assets/js/http'
//总部招聘管理

//查询招聘列表
export function getRecruitList(type,postName,companyName,index, size) {
    return $http.get('/manage/employee/list', {
        params: {
            isChecked:type,
            postName:postName,
            companyName:companyName,
            pageIndex: index,
            pageSize: size 
        }
    });
}

//删除招聘
export function postDeleteRecruit(delId) {
    return $http.post('/manage/employee/delete', {
        id: delId
    });
}
//招聘详情
export function getRecruitDeatils(id) {
    return $http.get('/manage/employee/detail', {
        params: {id:id }
    });
}

//招聘轮播图列表
export function getBannerList(title,index, size) {
    return $http.get('/manage/bannerRecruit/list', {
        params: {
            title:title,
            pageIndex: index,
            pageSize: size 
        }
    });
}
//删除招聘轮播图
export function postDeleteBanner(delId) {
    return $http.post('/manage/bannerRecruit/delete', {
        id: delId
    });
}

//添加招聘轮播图
export function postAddBanner(param) {
    // debugger;
    return $http.post('/manage/bannerRecruit/add', {
        img:param.img,
        cityId:param.cityId,
        title:param.title,
        jumpType:param.jumpType,//跳转类型：0不跳转、1跳转招聘公司、2跳转招聘详情
        recruitId:param.recruitId,//跳转目标id 不跳传0
    });
}

//编辑招聘轮播图
export function postEditBanner(param) {
    return $http.post(' /manage/bannerRecruit/edit', {
        id: param.id,
        img:param.img,
        cityId:param.cityId,
        title:param.title,
        jumpType:param.jumpType,//跳转类型：0不跳转、1跳转招聘公司、2跳转招聘详情
        recruitId:param.recruitId,//跳转目标id 不跳传0
    });
}


